GBML manual / 3D

view3d_width

Sets how wide the view is across the screen, in degrees (30 to 120). It starts at 66.

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_width(degrees)

Arguments

NameType
degreesreal

Returns

Nothing.

Description

Sets how wide the view is across the screen, in degrees. It starts at 66, and it is held between 30 and 120.

A wide view shows more of the room and stretches what is at the edges; a narrow one brings the middle close, like a telescope. The walls keep their proportions at every setting.

Example

view3d_start(ts_doc_walls);
view3d_width(90);

A wide view, 90 degrees across.

On the GBA

Wide shows more of the room and stretches the edges; narrow brings the middle close. A value outside 30 to 120 is held to it. The walls keep their proportions at every setting.

See also: 3D viewview3d_camera